package com.plx.service.impl;

import com.plx.mapper.EmployeesMapper;
import com.plx.pojo.employees;
import com.plx.service.employeesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class employeesServiceImpl implements employeesService {


    @Autowired
    //创建mapper对象
    private EmployeesMapper employeesMapper;
    @Override
    public List<employees> findAll() {
        return employeesMapper.findAll();
}

    @Override
    public void deleteById(String id) {
        employeesMapper.deleteById(id);

    }

    @Override
    public void addEmp(employees employees) {
employeesMapper.addEmp(employees);
    }
    @Override
    public employees EMPById(String id){
        return employeesMapper.findEMPById(id);
    }

    @Override
    public void Supdata(employees eeemp){
        employeesMapper.Mupdata(eeemp);
    }


}
